package cn.edu.tsinghua.training.cms.demo.test;

interface J_Interface<T extends Number> {
	int sum(T a1, T a2, T a3);
}

public class J_AddInterface<T extends Number> implements J_Interface<T> {

	@Override
	public int sum(T a1, T a2, T a3) {
		return a1.intValue()+a2.intValue()+a3.intValue();
	}
	
	public static void main(String[] args) {
		J_AddInterface<Integer> b = new J_AddInterface<Integer>();
		System.out.println(b.sum(1, 2, 3));
	}

}
